package com.yssoft.mapper.special;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.pagehelper.Page;
import com.yssoft.entity.special.TsSuspensionResumptionEntity;
import com.yssoft.entity.special.TsThreeYearsSalesEntity;
import com.yssoft.framework.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * TS_THREE_YEARS_SALES Mapper接口
 * @author: ZhouZhou
 * @date 2025-07-26 18:05:07
 */
public interface TsThreeYearsSalesMapper extends BaseMapper<TsThreeYearsSalesEntity>, com.baomidou.mybatisplus.core.mapper.BaseMapper<TsThreeYearsSalesEntity> {

    /**
     * 自定义分页查询
     * @param  page
     * @param  tsThreeYearsSalesEntity 实体类
     */
    Page<TsThreeYearsSalesEntity> findPage(IPage<TsThreeYearsSalesEntity> page,
                                           @Param("tsThreeYearsSalesEntity") TsThreeYearsSalesEntity tsThreeYearsSalesEntity,
                                           @Param("sql_filter") String sql_filter);

    /**
     * 通过ID查询
     * @param id 查询ID
     * @return
     */
    TsThreeYearsSalesEntity findTsThreeYearsSalesById(@Param("id") String id);



    /**
     * 查询列表
     * @param
     */
    List<TsThreeYearsSalesEntity> findList(TsThreeYearsSalesEntity tsThreeYearsSalesEntity);

    /**
     * 条件查询
     */
    TsThreeYearsSalesEntity selectById(@Param("id") String id);

    /**
     * 修改
     */
    int updateById(TsThreeYearsSalesEntity tsThreeYearsSalesEntity);

    int insert(TsThreeYearsSalesEntity entity);
}
